1. Dart
2. dart:convert
3. Codec<S, T>
4. encode method

##### Codec class

1. Constructors
2. Codec
3. Properties
4. decoder
5. encoder
6. hashCode
7. inverted
8. runtimeType
9. Methods
10. decode
11. encode
12. fuse
13. noSuchMethod
14. toString
15. Operators
16. operator ==

description

# encode method Null safety

T encode (

1. S input

)

Encodes `input`.

The input is encoded as if by `encoder.convert`.

## Implementation

    T encode(S input) => encoder.convert(input);